<template>
  <div>
    <el-avatar style="cursor: pointer" :size="50" :src="headpicSrc" />
  </div>
</template>

<script setup lang="ts">
import { userHeadpic } from '/@/api/users/usersActive'
import { onMounted, ref } from 'vue'
let headpicSrc = ref('')

onMounted(() => {
  userHeadpic().then((res) => {
    if (res.data) {
      headpicSrc.value = res.data
    }
  })
})
</script>

<style lang="scss" scoped></style>
